#ifndef CONSOLE_H_
#define CONSOLE_H_

typedef struct command {
        const char *name;
        void (*cmdfunc)(int argc, const char **);
        const char *helpstr;
}command_t;

#define __command_entry __attribute__ ((__used__,section (".command")))

void start_shell(void);
int set_console(char * dev);
void exec_string(char *buf);

#endif /* CONSOLE_H_ */
